import { GetterTree } from 'vuex';
import { UserState } from './typing';
import { RootState } from '@/store/root-state';

export const getters: GetterTree<UserState, RootState> = {
  user: state => state.user,
  routers: state => state.routers,
  routes: state => state.routes,
  currentFactory: state => state.currentFactory,
  multiFactoryChange: state => state.multiFactoryChange,
  allowRouters: state => state.allowRouters,
};
